# s1=input('请输入你的国籍:')
# if s1.startswith('中国'):
#     print('中国人')
# else:
#     print('外国人')
# s1=input('请输入一串字符串和数字：')
# s2=s1.replace('数加','shujia')
# print(s2)
# num=0
# s1=input('请输入一串字符串：')
# print("春眠不觉晓",end=',',sep='da')
# print('处处闻啼鸟')
# if 0:
#     pass
# else:
#     print('hello world')
# name=input('请输入您的姓名：')
# age=input('请输入您的年龄：')
# gender=input('请输入您的性别：')
# like=input('请输入您的爱好：')
# # print("您的姓名是:%s,年龄:%s,性别:%s,爱好:%s, "%(nam1e,age,gender,like))
# print(f"您的姓名是：{name},您的年龄是：{age},性别:{gender},爱好：{like}")
# score=input('请输入你的分数：')
# score=int(score)
# if 90<=score<=100:
#     print("吃肯德基")
# elif 80<=score<=90:
#     print('')
# for i in range(1,11,2):
#     print(i)
# num=0
# for i in range(1,11):
#     num=num+i
# print(f'1-11的和:{num}')
# num=1
# while num<=5:
#     print('好好学习，天天向上')
#     num=num+1
# print('hello world')
# num=1
# while num<=10:
#     if num==5:
#         num=num+1
#         continue
#     print(num)
#     num=num+1
from idlelib.replace import replace

# for i in  range(1,11):
#     if i==5:
#         break
#     print(i)
# print('好好学习')
#
# s1=('hello')
# print('s1,tope(s1)')
#
# s1='shujia'
# for i in range(len(s1)):
#     print(s1[i],end='')
# else:
#     print()
# print("hello world")
# s1 = "33期的同学们，大家好，欢迎来到数加科技！"
# print(s1[::2])
# print(s1)
# s1 = input("请输入一个包含字母和数字的字符串：")
# if '数加' in s1:
#     print("是数加的学生")
# else:
#     print("不是数加的学生")
# s1 = "hello"
# print(s1.upper()) # HELLO
# s1 = "heLlO wORlD"
# print(s1.upper()) # HELLO
# print(s1.lower()) # hello world
# while True:
#     name=input("请输入您的姓名：")
#     if name=='Q' or name=='q':
#         print('退出登录系统')
#         break
#     pwd=input("请输入您的密码：")
#     if name=='root'and pwd=='123456':
#         print('登录成功')
#         break
#     else:
#         print('登录失败,请重新输入')
# s1=input('请输入一个字符串')#
# if s1.isdigit():
#     print(int(s1)+1)#字符串不能和数字直接相加所以要用int转换一下
# else:
#     print('您输入的字符串内容不是一个数值')
# s1=input("请输入一个包含字母和数字的字符串：")
# num=0
# for i in s1:
#     if i.isdigit():
#         num=num+1
# print(f'该字符串中数字的个数为:{num}')
# s1 = "shujia数加科技学习study"
# b = s1.startswith('sh')
# print(b) # True
# s1 = "shujia数加科技学习study"
# # b = s1.startswith('sh')
# # print(b) # True
# b = s1.endswith('wdy')
# print(b) # False
# s1="1000,张三，18，男，33期"
# s2=s1.split(',')
# print(s2)
# s1 = "1001,张三,18,男,33期"
# l1=s1.split(',',maxsplit=1)
# print(l1)
# s1 = "1001,张三,18,男,33期"
# l1 = s1.split(',')
# print(l1)
# # 1001|张三|18|男|33期
# print("---------------------")
# s2 = '|'.join(l1)
# print(s2)
# s1 = '今天我在数加科技学习，今天学习了大数据相关的知识，在数加每一天都很充实！'
# s2 = s1.replace('数加', 'shujia')
# print(f"s1:{s1}")
# print(f"s2:{s2}")
# name=input('请输入您的姓名：')
# pwd=input('请输入您的密码:')
# if name.strip()=='root' and pwd.strip()=='123':
#     print('登陆成功')
# else:
#     print('登陆失败')
# s1='今天我在数加科技学习，今天学习了大数据相关的知识，在数加每一天都很充实'
# s1=s1.replace('数加','shujia')
# s1=s1.replace('数据','data')
# s1=s1.replace('每一天','every day')
# prin
# s1=input('请输入您的国籍')
# if s1.startswith('中国'):
#     print('中国人')
# else:
#     print('外国人')
# s1=input('请输入您的国籍')
# if s1[0:2]=='中国':
#     print("中国人")
# else:
#     print('外国人')
# s1=input('请输入一个文本：')
# num=0
# for i in s1:
#     if i=='数':
#         num=num+1
# print(f'一共出现了：{num}次')
# s1=input('请输入一个文本')
# number_str=''
# zimu_str=''
# for i in s1:
#     if i.isdigit():
#         number_str=number_str+i
#     else:
#         zimu_str=zimu_str+i
# print(f'所有数字字符：{number_str}')
# print(f'所有非数字字符：{zimu_str}')
# list1 = [10, 12.23, '数加', True, [11,22,33,44], 'shujia']
# for i in list1:
#     print(i)
# 0 1 2 3 4 5
# list1 = [11, 22, 33, 44, 55, 66]
# # -6 -5 -4 -3 -2 -1
# # 获取44这个元素
# print(listlist1=[]
# list1.append(100)
# list1.append('hello')
# list1.append('world')
# list1.append('Ture')
# list1.append('hello')
# list1.append('flink')
# print(f'list1:{list1}')
#
name_list=[]
# while True:
#     name=input('请输入您的名字：')
#     if name.upper=='Q':
#         break
#     name_list.append(name)
# print(name_list)
# list1=[100,'yang','hao','dong']
# list1.remove(100)
# print(f'list1{list1}')
# list1=[100,'hello','world',True,'hello','flink']
# print(f'list1:{list1}')
# list1.insert(2,'杨浩东')
# print(f'list1:{list1}')
# list1=[10,20,30,40]
# list1.reverse()
# print(f'list1:{list1}')
# str1=input('请输入一个字符串：')
# list2=list(str1)
# list2.reverse()
# str2=''.join(list2)
# if str1==str2:
#     print('是一个对称字符串')
# else:
#     print('不是对称字符串')
# list1=[11,22,33,[100,200,300],11,11,22,55,99]
# # list2=list1.copy()
# # print(f'list1:{list1}')
# # print(f'list2:{list2}')
# s1=list1.count(11)
# print(s1)
# t1 = (11,)
# print(t1, type(t1))
# t2 = (11,22,33,)
# print(t2[1])
# 遍历元组
# t1 = (11,22,33,44,55,66)
# # if 44 in t1:
# # print("yes")
# # else:
# # print("no")
# d1=dict()
# print(d1,type(d1))
# d1 = {'name':'张三', 'age':18, 'likes':['打游戏','看电影','跑步'], 'dog':{'name':'哮天犬','age':3}}
# print(len(d1)) # 4
f= open()